package extend01;

public class Teacher extends Person{

    double salary;

    public void teach() {
        System.out.println(name + "教java");
    }

}
